// const plugins = require('./config/plugins');
const themeConfig = require('./config/theme');

module.exports = {
    // theme: '',
    title: 'sks-plugin-el-element ',
    description: '依赖于el-element用于erp的封装组件和工具包',
    // base: '/',
    // port: '28088',
    scrollOffset: 'header',
    head: [
        ['link', { rel: 'icon', href: 'https://talk.gitee.com/search/resources/images/logo.svg?20200207' }],
        ['meta', { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no' }],
        ['meta', {
            name: 'keywords',
            content: 'Sks框架,JavaScript,js,ES6,TypeScript,vue,python,css3,html5,Node,git,github,markdown'},
        ],
        ['meta', { name: 'themeBak-color', content: '#11a8cd' }], // 移动浏览器主题颜色
        // ['script', { async: 'async', src: 'https://hm.baidu.com/hm.js?662dade0b3fe9911e80442e86935e233'}],
    ],
    plugins: [
        ['demo-container'],
        // ['demo-container',{
        //     component: 'DemoBlock'
        // }],
        // activeHeaderLinksPlugin({
        //
        // })
        ['@vuepress/active-header-links', {
            //https://vuepress2.netlify.app/zh/reference/plugin/active-header-links.html#%E9%85%8D%E7%BD%AE%E9%A1%B9
            sidebarLinkSelector: '.sidebar-link',
            headerAnchorSelector: '.header-anchor'
        }]
    ],
    themeConfig,
    markdown: {},
    locales: {
        // 键名是该语言所属的子路径
        // 作为特例，默认语言可以使用 '/' 作为其路径。
        '/': {
            lang: 'zh-CN', // 将会被设置为 <html> 的 lang 属性
            title: 'sksPluginElErp',
            description: 'Vue 驱动的静态网站生成器',
            "demo-block": {
                "hide-text": "隐藏代码",
                "show-text": "显示代码",
                "copy-text": "复制代码",
                "copy-success": "复制成功"
            }
        },
        // '/en/': {
        //     lang: 'en-US',
        //     title: 'sksPluginElErp',
        //     description: 'Vue-powered Static Site Generator',
        //     "demo-block": {
        //         "hide-text": "Hide",
        //         "show-text": "Expand",
        //         "copy-text": "Copy",
        //         "copy-success": "Successful"
        //     }
        // }
    },
    sass: { indentedSyntax: true },
    scss: {
        includePaths: [
            "./styles/index.scss",
            "./styles/element-variables.scss",
        ]
    },
}
